package com.ftg.learn.chapter8.pattern.proxy;

import java.lang.reflect.Proxy;
import java.util.List;

/**
 * 律师
 *  叫静态代理
 * @author kangjx
 * @version 1.0
 * @date 2023/8/4 上午8:42
 */
public class LawyerProxy implements Sayinterface{

    private Defendant defendant;


    public LawyerProxy(Defendant defendant){
        this.defendant = defendant;
    }


    @Override
    public void say() {

        defendant.say();
        System.out.println("从现在开始你一切要听我的");
        System.out.println("你要这样.......");
    }
}
